// api.js
import axios from 'axios';

// 创建一个 Axios 实例，设置基础 URL
const apiClient = axios.create({
  baseURL: 'http://localhost:3789',
  timeout: 10000,
  headers: {
    'Content-Type': 'application/json',
  },
});

// 定义 WebSocket 地址
const wsUrl = 'ws://localhost:8181';

export default apiClient;
export { wsUrl };